package org.ioc.com.spring_trans.service;

import org.ioc.com.spring_trans.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;
    @Transactional(propagation = Propagation.NEVER)
    public Integer insert(String userName, String password) {
        Integer result=userInfoMapper.queryInsert(userName,password);
        return result;
    }
}
